package com.smmisia.shop.service;

import com.smmisia.common.Result.Result;
import com.smmisia.shop.entity.Ticket;
import com.baomidou.mybatisplus.extension.service.IService;
import com.smmisia.shop.request.TicketBuyResponse;
import com.smmisia.shop.request.TicketRequest;
import com.smmisia.shop.response.TicketOrderResponse;
import com.smmisia.shop.response.TicketResponse;

import java.util.List;


public interface TicketService extends IService<Ticket> {

    Result<TicketResponse> getTicketList(Integer scenicSpotId);

    Result<TicketBuyResponse> buyTicket(TicketRequest request);

    Result<Boolean> buyTicketScheduled(TicketRequest request);

    Result<List<TicketOrderResponse>> getTicket();

    Result<Boolean> cancelTicketOrder(Integer orderId);

    Result<Boolean> payTicketOrder(Integer orderId);

    Result<TicketOrderResponse> getTicketById(Integer orderId);
}
